package ru.intr13.test;

import javax.ejb.Remote;
import javax.ejb.Stateless;

@Stateless
@Remote(SimpleServerRemote.class)
public class SimpleServerBean implements SimpleServerRemote {
	
	@Override
	public String getTime() {
		java.util.Date d = new java.util.Date();
		System.out.println("kva");
		return "Server time: " + d;
	}

	@Override
	public Data getData(String text) {
		Data data = new Data();
		data.setText(text);
		return data;
	}
}